<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="TiDB集群用户UID不一致">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="TiDB_00062.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="TiDB_00073">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>TiDB集群用户UID不一致</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="TiDB_00073"></a><a name="TiDB_00073"></a>
  <h1 class="topictitle1">TiDB集群用户UID不一致</h1>
  <div>
   <div class="section">
    <h4 class="sectiontitle">故障现象</h4>
    <p>TiDB子任务执行失败，任务事件中有“运行TiDB集群的用户UID不一致”的原因提示。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">可能原因</h4>
    <p>运行TiDB集群的用户UID不一致。需要重新更改用户的UID。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">处理步骤</h4>
    <p>建议在TiDB集群的所有节点完成以下操作：</p>
    <ol>
     <li id="TiDB_00073__li028478818"><a name="TiDB_00073__li028478818"></a><a name="li028478818"></a><span>执行以下命令查询UID需要修改用户的用户名和当前UID，“<em>username</em>”为待修改UID对应的用户名。</span><p></p><pre class="screen">$ id <em>username</em> </pre> <p></p></li>
     <li><span>执行以下命令将用户UID修改为新的UID，“new_uid”为修改的新UID，“<em>username</em>”为待修改UID对应的用户名（确保新UID在系统中唯一）。</span><p></p><pre class="screen">$ sudo usermod -u <em>new_uid</em> <em>username</em></pre> <p></p></li>
     <li><span>再次执行<a href="#TiDB_00073__li028478818">1</a>确认用户UID是否修改成功</span></li>
    </ol>
   </div>
   <p></p>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="TiDB_00062.html">常见问题</a>
    </div>
   </div>
  </div>
 </body>
</html>